package com.lyc.day1103.demo03;

import java.util.function.Supplier;

/**
 * @author ：Xiaochen
 * @date ：Created in 2022/11/3 21:26
 * @description：
 * @modified By：
 * @version:
 */
public class TestSupplier {
    public static void main(String[] args) {
        Supplier<String> s=()->{return "我爱小诗诗";};
        fun(s);
    }
    public static void fun(Supplier<String> supplier){
        String a = supplier.get();
        System.out.println(a);
    }
}
